<?php

class Module_Mediate_ImportRecordDetail extends Module_BaseModule
{
    use Lib_BaseTraitsModule;
    private static $obj = null;
    private $model = null;

    /**
     * 封闭构造.
     */
    public function __construct()
    {
        $this->model = new Model_Mediate_ImportRecordDetail();
    }

    /**
     * 单例获取
     * 保证一条进程只产生一个Module对象
     *
     * @return Module_Mediate_ImportRecordDetail
     */
    public static function getInstance()
    {
        if (empty(self::$obj)) {
            self::$obj = new self();
        }

        return self::$obj;
    }

    public function updateSubmitStatus($id,$submit_status,$submit_desc){
        $up_data = [
            'id' => $id,
            'submitStatus' => $submit_status,
            'desc' => $submit_desc,
        ];
        return $this->model->singleUpdate($up_data);
    }
}
